// 添加spring-security插件核心配置

//加密方式
grails.plugin.springsecurity.password.algoritham = 'SHA-256'

//用户类
grails.plugin.springsecurity.userLookup.userDomainClassName = 'com.system.UserInfo'

//用户角色类
grails.plugin.springsecurity.userLookup.authorityJoinClassName = 'com.system.UserRole'

//角色类
grails.plugin.springsecurity.authority.className = 'com.system.RoleInfo'

//角色集合字段，是UserInfo的getAuthorities()
grails.plugin.springsecurity.authority.groupAuthorityNameField = 'authorities'

//是否使用组类进行管理，如果使用了true，则必须配置组的相关东西
grails.plugin.springsecurity.useRoleGroups = false

//请求映射类，管理url的类
grails.plugin.springsecurity.requestMap.className = 'com.system.Requestmap'

//请求的url属性字段
grails.plugin.springsecurity.requestMap.urlField = 'url'

grails.plugin.springsecurity.securityConfigType = 'Requestmap'
grails.plugin.springsecurity.relationalAuthorities='allRoles'